from rust:1.64.0

run apt-get update

# 安装python
run apt-get install python3-dev libncurses5-dev python3 -y

# 安装vim
workdir /opt/downloads/
run git clone https://github.com/vim/vim
workdir /opt/downloads/vim
run ./configure --with-features=huge \
 --enable-multibyte \
 --enable-luainterp \
 --enable-rubyinterp \
 --enable-pythoninterp \
 --enable-python3interp=dynamic \
 --enable-perlinterp \
 --enable-cscope \
 --enable-tclinterp \
 --enable-gui=gtk3 \
 --with-python-config-dir=/usr/bin/python3 \
 --with-x \ 
 --with-tlib=ncurses \
 --with-gnome
run make && make install

# 配置vim的环境
add ./plug.vim /root/.vim/autoload/plug.vim
add ./vimrc /root/.vimrc
add ./id_rsa.pub /root/.ssh/id_rsa.pub


workdir /opt/projects/
